OpenWGA 7.10 - WebTML reference

WebTML tags » [All action calling tags]

<tml:[All action calling tags] portletmode ="portlet-mode">

Purpose:

Defines the portlet mode to set for the current portlet after the action is executed successfully.

Description:

The portlet mode is set automatically to the specified value when the action was executed successfully.

The portlet mode will be left unchanged when an uncaught exception occurs on the action or it explicitly returns the boolean value false.

If you use the "portletmode" attribute without specifying an action WebTML will automatically assume action "$refresh".

If you use the "portletmode" attribute on <tml:url> without specifying the URL type WebTML will automaticall assume type="action".


Value(s):

Portlet mode like 'view' or 'edit'

Examples:

This attribute allows the execution of default actions and changing the portlet mode at once.

<tml:button clickaction="$store" portletmode="view"/>


After the action '$store' is executed successfully the portlet mode is set to 'view'. If an error occur during '$store' the portlet mode will remain unchanged.